/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.grubby.databean;

import com.grubby.databean.constraints.annotation.Length;
import com.grubby.databean.constraints.annotation.Mandatory;
import com.grubby.databean.constraints.annotation.MaxLength;

/**
 * This class is used by the WholeBeanValidationTest class.
 * @author A. HARMEL-LAW. E: andrew.harmel.law@gmail.com
 * @version 0.1
 */
public class WhollyValidatedBean extends AbstractDataBean {

    private String AA; 
    private String BB;
    private String CC;
    
    @Mandatory
    public void setAA(String A) {
        this.AA = A;
    }
    
    public String getAA() {
        return this.AA;
    }
    
    @Length(10)
    public void setBB(String B) {
        this.BB = B;
    }
    
    public String getBB() {
        return this.BB;
    }
    
    @MaxLength(10)
    public void setCC(String C) {
        this.CC = C;
    }
    
    public String getCC() {
        return this.CC;
    }
}
